var mysql = require("mysql");
var config = require("./config");
var connection = mysql.createConnection({
    host: config.database.HOST,
    user: config.database.USERNAME,
    password: config.database.PASSWORD,
    database: config.database.DATABASE
})

connection.connect();
connection.query("select * from users", (err, res, fields) => {
    if (err) {
        throw err;
    }
    console.log("The results is ", res[0]);
});

connection.end();